package utils;

import java.net.URL;
import java.util.ResourceBundle;

public enum Mood {

	
	ANGRY(1, "angry.png", ResourceBundle.getBundle("utils.messages").getString("1")),
	BACKACHE(2, "backache.png", ResourceBundle.getBundle("utils.messages").getString("2")),
	BORED(3, "bored.png", ResourceBundle.getBundle("utils.messages").getString("3")),
	CONFUSED(4, "confused.png", ResourceBundle.getBundle("utils.messages").getString("4")),
	DEPRESSED(5, "depressed.png", ResourceBundle.getBundle("utils.messages").getString("5")),
	DETERMINED(6, "determined.png", ResourceBundle.getBundle("utils.messages").getString("6")),
	DISAPPOINTED(7, "disappointed.png", ResourceBundle.getBundle("utils.messages").getString("7")),
	EXCITED(8, "excited.png", ResourceBundle.getBundle("utils.messages").getString("8")),
	FEELSATISFACTION(9, "feelSatisfaction.png", ResourceBundle.getBundle("utils.messages").getString("9")),
	FEELSUMMER(10, "feelSummer.png", ResourceBundle.getBundle("utils.messages").getString("10")),
	FRUSTRATED(11, "frustrated.png", ResourceBundle.getBundle("utils.messages").getString("11")),
	HAPPY(12, "happy.png", ResourceBundle.getBundle("utils.messages").getString("12")),
	HEADACHE(13, "headache.png", ResourceBundle.getBundle("utils.messages").getString("13")),
	HOT(14, "hot.png",ResourceBundle.getBundle("utils.messages").getString("14")),
	IMPRESSED(15, "impressed.png", ResourceBundle.getBundle("utils.messages").getString("15")),
	INLOVE(16, "inLove.png", ResourceBundle.getBundle("utils.messages").getString("16")),
	LAZY(17, "lazy.png", ResourceBundle.getBundle("utils.messages").getString("17")),
	LONELY(18, "lonely.png", ResourceBundle.getBundle("utils.messages").getString("18")),
	MISFORTUNEDAY(19, "misfortuneDay.png", ResourceBundle.getBundle("utils.messages").getString("19")),
	NORMAL(20, "normal.png", ResourceBundle.getBundle("utils.messages").getString("20")),
	OPTIMIST(21, "optimist.png", ResourceBundle.getBundle("utils.messages").getString("21")),
	OUTOFJOY(22, "outOfJoy.png", ResourceBundle.getBundle("utils.messages").getString("22")),
	PISSED(23, "pissed.png", ResourceBundle.getBundle("utils.messages").getString("23")),
	SAD(24, "sad.png", ResourceBundle.getBundle("utils.messages").getString("24")),
	SCARED(25, "scared.png", ResourceBundle.getBundle("utils.messages").getString("25")),
	SICK(26, "sick.png", ResourceBundle.getBundle("utils.messages").getString("26")),
	STRESSED(27, "stressed.png", ResourceBundle.getBundle("utils.messages").getString("27")),
	TIRED(28, "tired.png", ResourceBundle.getBundle("utils.messages").getString("28")),
	TOOTHACHE(29, "toothache.png", ResourceBundle.getBundle("utils.messages").getString("29")),
	VERYSICK(30, "verySick.png", ResourceBundle.getBundle("utils.messages").getString("30")),
	WIPEDOUT(31, "wipedOut.png", ResourceBundle.getBundle("utils.messages").getString("31"));
	
	
	private int code;
	private String associatedIconName;
	private String text;
	
	
	
	Mood (int code, String associatedIconName, String text) {
		this.associatedIconName = associatedIconName;
		this.code = code;
		this.text = text;
	}
	
	public URL getAssociatedIcon() {
		return UserState.class.getResource("/images/Moods/"+associatedIconName);
		
	}

	public String getText() {
		return text;
	}
	
	public int getCode () {
		return code;
	}

	
}
